import { get, post } from "@/utils/baseApiMethod";

export function userLogin(data) {
  return post("/user/login", data);
}

export function userRegister(data) {
  return post("/user/register", data);
}

export function getUserInfo(params) {
  return get("/user/userInfo", params);
}

export function getUserList(params) {
  return get("/user/userList", params);
}

export function setRole(data) {
  return post("/user/setRole", data);
}

export function getMenuList(params) {
  return get("/user/getRouter", params);
}